<%@page import="java.sql.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Elenco Vini</title>
</head>
<body>
<table title="Elenco Vini Correntemente Prodotti">  
<% 
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "aziendavinicola", "filippo");
Statement st = con.createStatement();
	ResultSet rs = st.executeQuery("Select codicevino from vino where annoproduzione = 2011");
	while (rs.next())
	{
		%>
		<tr>
		<%= rs.getString(1) %>
		</tr>
		<% 
	}
%>

</table>

<form action="infoVino.jsp" name="form" method="post">
<table>
<tr >Inserisci il nome del vino per le info :
<input type="text" name="vino" size="25"> 
</tr>
</table>
</form>
</body>
</html>